<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('counselling/index')}">咨询列表</a></li>
		</ul>
		<br>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>咨询标题</th>
					<th>咨询内容</th>
					<th>图片</th>
					<th>咨询用户</th>
					<th>咨询日期</th>
					<th>状态</th>
					<th>回复内容</th>
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.title}</td>
					<td>{$vo.content}</td>
					<td>
						<foreach name="vo.images" item="img">
							<a href="javascript:imagePreviewDialog('{$img}');">
                                <i class="fa fa-photo fa-fw"></i>
                            </a>
						</foreach>
					</td>
					<td>{$vo.user.user_nickname}</td>
					<td>{$vo.create_time}</td>
					<td>{$vo.status_text}</td>
					<td>{$vo.reply}</td>
					<td>
						<a class="btn btn-xs btn-primary" href='{:url("counselling/reply",array("id"=>$vo["id"]))}'>回复</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>